package org.ilead.iserve.model;

/**
 * 用户权限
 * UserPermission entity. @author MyEclipse Persistence Tools
 */

public class UserPermission implements java.io.Serializable {

	// Fields

	private static final long serialVersionUID = 1L;
	
	private Integer id;
	private String code;
	private String name;
	/**
	 * 用户权限的代码值，如1代表有浏览权限，2下载，3发布，4上传，5管理
	 * 各个权限用","分隔,如1,2,3代表有浏览、下载、发布权限
	 */
	private String value;

	// Constructors

	/** default constructor */
	public UserPermission() {
	}

	/** minimal constructor */
	public UserPermission(String code, String value) {
		this.code = code;
		this.value = value;
	}

	/** full constructor */
	public UserPermission(String code, String name, String value) {
		this.code = code;
		this.name = name;
		this.value = value;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return this.value;
	}

	public void setValue(String value) {
		this.value = value;
	}

}